﻿#include "excelimportthread.h"
#include <QDebug>

ExcelImportThread::ExcelImportThread(QObject *parent) : QThread(parent)
{

}

void ExcelImportThread::setFileName(QString fileName)
{
    this->fileName = fileName;
}

void ExcelImportThread::importData(){
    if(m_xls.isNull())
        m_xls.reset(new ExcelBase);
    QList<QList<QVariant>> m_datas;
    m_xls->open(fileName);
    m_xls->setCurrentSheet(1);
    m_xls->readAll(m_datas);
    m_xls->close();
    emit importDataDone(m_datas);
}

void ExcelImportThread::run()
{

}


